import axios from './axios';

export const login = (data) =>
    axios.post('/users/login', data)

export const register = (data) =>
    axios.post('/users/register', data)

export const uploadAvatar = (data) =>
    axios.post('/users/uploadAvatar', data)

export const changeUser = (data) =>
    axios.post('/users/edit', data)

export const getUser = (data) =>
    axios.post('/users/getuser', data)

